<template>
<div  class="model-form">
    <el-page-header @back="goBack" content="详情">
    </el-page-header>

        <div class="form-title">详细信息</div>
        <el-form class="viewForm" label-width="80px">
            <el-col :span="12">
                <el-form-item label="用户">
                    <div v-html="viewModel.creatorName"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="ip地址">
                    <div v-html="viewModel.ip"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="url地址">
                    <div v-html="viewModel.url"></div>
                </el-form-item>
            </el-col>
        </el-form>

</div>
</template>

<script>
import common from "@/mixins/common.js";

export default {
  mixins: [common],
  data() {
    return {
      viewModel: {},
      activeIndex: "1",
    };
  },
  mounted() {
    var id = this.$route.query.id;
    var self = this;
    var data = {};
    data.id = id;

    var url = self.$CONFIG.REMOTE_URL + "/tenantRest/accesslog/view.htm";
    console.info(url);
    this.$HTTP.form(url, data).then((res) => {
      if (res.code == 0) {
        self.viewModel = res;
      }
    });
  },
};
</script>

<style>
</style>